import { createApp } from 'vue'
import App from './App.vue'
import '@/assets/css/index.less'
import router from '@/router'
import { createPinia } from 'pinia'
import { useLoginStore, useTableStore } from './store'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
const app = createApp(App)
const pinia = createPinia()
app.use(pinia)
const loginStore = useLoginStore()
loginStore.addRoutes()

const tableStore = useTableStore()
tableStore.getTableAction('roles',{})
tableStore.getTableAction('colleges',{})
app.use(router)
app.use(ElementPlus, {
  locale: zhCn,
})
app.mount('#app')
